<script setup>
import MarkdownToc from './catalog/index.vue'

defineProps({
  markdownContent: {
    type: String,
    required: true,
  },
  author: {
    type: Object,
    required: true,
  },
})
</script>

<template>
  <div class="mb-10 border-rd-5 p-8 auto-bg">
    <UserCard :info="author" show-button :show-footer="false">
      <template #content>
        <div class="flex us">
          <div class="flex-col flex-1 cursor-pointer items-center">
            <span>11</span>
            <span class="font-size-14 op-text">文章</span>
          </div>
          <div class="flex-col flex-1 cursor-pointer items-center">
            <span>11</span>
            <span class="font-size-14 op-text">粉丝</span>
          </div>
        </div>
      </template>
    </UserCard>
  </div>
  <MarkdownToc :markdown-content="markdownContent" />
</template>

<style scoped></style>
